package com.jimster.plugins.social
{
	import flash.net.URLRequest;
	import flash.net.URLRequestMethod;
	import flash.net.URLVariables;

	public class Facebook
	{
		public function Facebook()
		{
		}
		
		public static function shareRequest( $url:String, $pageTitle:String ):URLRequest
		{
			var _varsShare:URLVariables = new URLVariables();
			_varsShare.u = $url;
			_varsShare.t = $pageTitle;
			
			var _reqFace:URLRequest = new URLRequest( "http://www.facebook.com/sharer.php" );
			_reqFace.data = _varsShare;
			_reqFace.method = URLRequestMethod.GET;
			
			return _reqFace;
		}
		
		public static function shareString( $url:String, $pageTitle:String ):String
		{
			var _varsShare:String =  "http://www.facebook.com/sharer.php?u=" + $url + "&t=" + $pageTitle;
			
			return _varsShare;
		}
	}
}